package com.atguigu.frenchcount;

/**
 * @Author: Jiang Yizhi
 * @Date: 2022/5/11 5:17 PM
 */

public class CountWords {

    public static void main(String[] args) {
//        int count = countWords("alright");
//        System.out.println(count);
        test1();
    }

    public static int countWords(String faitdivers) {
        String[] s = faitdivers.split(" ");
        return s.length;
    }

    public static Integer test1() {
        try {
            int a = 10/0;
            return a;
        } catch (Exception e) {
            return null;
        }
    }
}
